//
//  ZNewTodoItemVC.h
//  WeClubs
//
//  Created by Zed Link on 17/4/2017.
//  Copyright © 2017 Zed. All rights reserved.
//
//  组织事项发布_基类

#import "ZBaseViewController.h"
#import "ZNewTextViewCell.h"
#import "ZNewMemberChoseCell.h"
#import "ZNewClubCell.h"
#import "ZNewMemberGroupCell.h"
#import "ZNewTextFieldCell.h"
#import "ZNewSwitchCell.h"
#import "ZCommentHeader.h"

#define NewHeaderKey @"Header"
#define NewDataKey @"Data"
#define NewTypeKey @"Type"
#define NewTitleKey @"Title"

typedef enum : NSUInteger {
    ZNewCellTypeTextField = 0,   // 文本输入框列表项
    ZNewCellTypeMemberChose = 1,    // 成员选择列表项
    ZNewCellTypeClub = 2,   // 组织列表项
    ZNewCellTypeMemberGroup = 3,     // 成员组列表项
    ZNewCellTypeMission = 4,     // 任务列表项
    ZNewCellTypeSwitch = 5,      // 开关选择项
    ZNewCellTypeDate = 6,       // 日期选择项
    ZNewCellTypeTextInput = 7   // 文本输入项
} ZNewCellType;

static NSString * TodoHeaderReuseID = @"TodoHeaderReuseID";
static NSString * NewTextViewCellReuseID = @"ZNewTextViewCellReuseID";
static NSString *  NewMemberChoseCellReuseID = @"ZNewMemberChoseCellReuseID";
static NSString * NewClubCellReuseID = @"ZNewClubCellReuseID";
static NSString * NewMemberGroupCellReuseID = @"ZNewMemberGroupCellReuseID";
static NSString *  NewMissionCellReuseID = @"ZNewMissionCellReuseID";
static NSString * NewSwitchCellReuseID = @"ZNewSwitchCellReuseID";
static NSString * NewDateCellReuseID = @"ZNewDateCellReuseID";
static NSString * NewTextFieldCellReuseID = @"ZNewTextFieldCellReuseID";

@interface ZNewTodoItemVC : ZBaseViewController <UITableViewDelegate, UITableViewDataSource>

/** 主界面 */
@property (weak, nonatomic) UITableView *mainView;

/** 界面配置源 */
@property (strong, nonatomic) NSMutableArray *interfaceConfig;

@end
